package com.esd.device.task;

import com.esd.device.entity.vo.DustStatusVo;
import com.esd.device.entity.vo.PositionStoreVo;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantLock;

// 用于存储临时数据
public class DeviceConstants {
    // 网关锁
    public static final ConcurrentHashMap<String , ReentrantLock> LockMap = new ConcurrentHashMap<>();
    // 网关失联次数，用于判断网关状态
    public static final ConcurrentHashMap<String , Integer> GatewayMissTimesMap = new ConcurrentHashMap<>();
    // 终端通道状态临时数据
    public static final ConcurrentHashMap<String , PositionStoreVo> ChannelStatusMap = new ConcurrentHashMap<>();

    public static final ConcurrentHashMap<String , DustStatusVo> DustStatusMap = new ConcurrentHashMap<>();
}
